/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* 屏幕容器 - 修改后直接作为主容器 */
.screen {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    background: #f8f9fa; /* 浅灰白色背景 */
    overflow: hidden;
    position: relative;
}

/* 移除手机框架相关样式 */
/* 已移除phone-frame相关样式 */

/* 状态栏（已移除） */
.status-bar {
    display: none;
}

.time {
    display: none;
}

.battery {
    display: none;
}

/* 应用容器 */
.app-container {
    min-height: calc(100vh - 80px);
    /*padding-bottom: 80px;*/
    background: #f8f9fa;
    overflow-y: auto;
    position: relative;
}

/* 页面头部 */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.greeting {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.date {
    color: #718096;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 余额卡片 */
.balance-card {
    margin: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 紫蓝渐变 */
    border-radius: 20px;
    padding: 30px 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.balance-stats {
    display: flex;
    justify-content: space-between;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

/* 快速操作 */
.quick-actions {
    padding: 0 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.expense-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); /* 红色渐变 */
    color: white;
}

.income-icon {
    background: linear-gradient(135deg, #51cf66, #40c057); /* 绿色渐变 */
    color: white;
}

.action-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* 交易记录 */
.recent-transactions {
    padding: 0 20px;
}

.transaction-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* 用户头像样式 */
.item-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #007bff;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
}

/* 选项按钮样式 */
.transaction-options {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.transaction-options:hover {
    background: #e9ecef;
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.food-icon {
    background: #fff3cd;
    color: #856404;
}

.transport-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.salary-icon {
    background: #d4edda;
    color: #155724;
}

.transaction-info {
    flex: 1;
    margin-left: 8px;
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.transaction-info h4:hover {
    background-color: #f8f9fa;
}

.transaction-info p {
    font-size: 12px;
    color: #718096;
}

.transaction-amount {
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.transaction-amount:hover {
    background-color: #f8f9fa;
}

.expense-amount {
    color: #e53e3e;
}

.income-amount {
    color: #38a169;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding: 8px 12px;*/
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #a0aec0;
    font-size: 12px;
    min-width: 60px;
}

.nav-item:hover {
    background: #f7fafc;
    color: #667eea;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 登录和注册页面 */
.auth-container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.auth-logo {
    font-size: 40px;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    width: 100%;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.social-login {
    margin-top: 30px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8f9fa;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #718096;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* 统计页面 */
.chart-container {
    margin: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.chart-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.filter-btn:not(.active) {
    background: #e2e8f0;
    color: #718096;
}

/* 一句话记账 */
.quick-record {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 30px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.quick-record.active {
    transform: translateY(0);
}

.quick-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quick-record-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.voice-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.voice-input-field {
    flex: 1;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
}

.mic-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mic-btn:hover {
    transform: scale(1.05);
}

/* 图片上传功能样式 */
.image-upload-section {
    margin: 20px 0;
}

.upload-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.upload-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.upload-divider span {
    background: white;
    padding: 0 15px;
    color: #718096;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.image-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 32px;
    opacity: 0.6;
}

.upload-text {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #718096;
}

.image-preview {
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* 记账表单 */
.record-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.record-form.active {
    opacity: 1;
    pointer-events: auto;
}

.record-form-content {
    width: 90%;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.record-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.record-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.record-type-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.record-type-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.record-type-tab.expense {
    background: #fff5f5;
    color: #e53e3e;
}

.record-type-tab.income {
    background: #f0fff4;
    color: #38a169;
}

.record-type-tab.active {
    background: #e53e3e;
    color: white;
}

.record-type-tab.active.income {
    background: #38a169;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-card,
.action-btn,
.transaction-item,
.card {
    animation: fadeIn 0.6s ease-out;
}

.action-btn:nth-child(2),
.transaction-item:nth-child(2) {
    animation-delay: 0.1s;
}

.transaction-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 用户中心页面 */
.user-header {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 30px 30px;
}

/* 会员标记样式 */
.membership-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
    }
    to {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.membership-status {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.membership-indicator {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-id {
    font-size: 14px;
    opacity: 0.8;
}

.menu-list {
    margin: 20px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.menu-arrow {
    color: #a0aec0;
    font-size: 18px;
}

/* 明细页面 */
.detail-date-header {
    padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    top: 0;
    z-index: 5;
}

.detail-date-summary {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .phone-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }

    .screen {
        border-radius: 0;
    }
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 1;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* .empty-state { */
    /* display: flex; */
/* } */

.toast {
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.toast-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.toast-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.toast-header {
    background-color: transparent;
    border-bottom: none;
    padding: 0.5rem 1rem;
}

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 14px;
}

.toast-success .toast-header strong {
    color: #155724;
}

.toast-error .toast-header strong {
    color: #721c24;
}

.toast-info .toast-header strong {
    color: #0c5460;
}

.toast-warning .toast-header strong {
    color: #856404;
}


/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #666;
}

.modal-body {
    padding: 0 20px;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}


.modal-footer {
    border-top: 1px solid #edf2f7;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-footer .btn {
    /* padding: 8px 0; */
    border-radius: 8px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.modal-footer .btn-secondary {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #4a5568;
}

.modal-footer .btn-secondary:hover {
    background-color: #cbd5e0;
    border-color: #cbd5e0;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (max-width: 414px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-footer {
        padding: 15px;
    }

    .modal-footer .btn {
        font-size: 14px;
        padding: 8px 0;
    }
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


.cancel-btn {
    flex: 1;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #718096;
    font-size: 16px;
    font-weight: 600;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: #cbd5e0;
    background: #e2e8f0;
    transform: translateY(-1px);
}

.save-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.page-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.emoji-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.emoji-option {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-option:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.emoji-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: scale(1.05);
}
.emoji-option-no-results {
    text-align: center;
    color: #666;
}


.category-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.category-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.category-item.active .category-icon {
    /*background: rgba(255, 255, 255, 0.3);*/
}

.category-name {
    font-size: 15px;
    /*font-weight: 600;*/
    text-align: center;
}

/* 二级分类样式 */
.subcategory-selector {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: none;
    background-color: #f0f5ff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.subcategory-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.subcategory-title {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: #667eea;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subcategory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 4px 3px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #718096;
}

.subcategory-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.subcategory-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.subcategory-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.subcategory-item.active .subcategory-icon {
    /*background: #667eea;*/
    /*color: white;*/
    /*transform: scale(1.05);*/
    /*box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);*/
}

.subcategory-name {
    font-size: 12px;
    /*font-weight: 500;*/
    text-align: center;
}

.category-selected-info {
    display: none;
    font-size: 14px;
    color: #667eea;
    margin-top: 10px;
    font-weight: 600;
    background-color: #eef2ff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

.modal-test {
    top: 300px;
}

.divider-text {
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    margin: 20px 0;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e8f0;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}
